package cn.stylefeng.guns.modular.system.workstation.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 工位信息表封装类
 *
 * @author PANL
 * @since 2023/12/05 14:22
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class StationRequest extends BaseRequest {

    /**
     * 工位CODE
     */
    @NotNull(message = "工位CODE不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("工位CODE")
    private String stationCode;

    /**
     * 工位名称
     */
    @NotBlank(message = "工位名称不能为空", groups = {add.class, edit.class})
    @ChineseDescription("工位名称")
    private String stationName;

    /**
     * 创建人
     */
    @ChineseDescription("创建人")
    private String createUser;

    /**
     * 创建时间
     */
    @ChineseDescription("创建时间")
    private String createTime;

    /**
     * 修改人
     */
    @ChineseDescription("修改人")
    private String updateUser;

    /**
     * 修改时间
     */
    @ChineseDescription("修改时间")
    private String updateTime;

    /**
     * 组织id
     */
    @ChineseDescription("组织id")
    @JsonProperty("ORGID")
    private String ORGID;


    private List<String> userids;

    private List<String> eqpids;


    /**
     * 批量删除用的id集合
     */
    @NotNull(message = "批量删除id集合不能为空", groups = batchDelete.class)
    @ChineseDescription("批量删除用的id集合")
    private List<String> batchDeleteIdList;

}
